package net.kodra.supereasy.authentication.server;

import net.kodra.openid.gae.AuthenticationServiceImpl;
import net.kodra.openid.gwt.widget.AuthenticatedUser;

@SuppressWarnings("serial")
public class MyAuthenticationService extends AuthenticationServiceImpl
{

  public AuthenticatedUser getCurrentUser()
  {
    AuthenticatedUser authenticatedUser = super.getCurrentUser();
    if (authenticatedUser != null)
      DataStore.save(authenticatedUser);
    return authenticatedUser;
  }

}
